package com.love.marriage.userBalanceInfo.mapper;

import com.love.marriage.userBalanceInfo.entity.UserBalanceInfo;
import com.love.marriage.userBalanceInfo.vo.UserBalanceInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  用户余额表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-17 21:19:44
 * version:      1.0.0
 */
@Mapper
public interface UserBalanceInfoMapper extends BaseMapper<UserBalanceInfo> {

    @DataPermission(table = "user_balance_info_t")
    Page<UserBalanceInfoVo> getPage(Page<UserBalanceInfoVo> page, @Param("userBalanceInfoVo") UserBalanceInfoVo userBalanceInfoVo);

    UserBalanceInfoVo queryUserBalanceInfo(@Param("id") Long id);

    UserBalanceInfoVo queryUserBalanceInfoByUserId(@Param("userId") Long userId);
}
